/*! \file   literals.h
	\author HiddenSeeker

	Describes a literal parsing functions
*/
#pragma once

#ifndef _MSC_VER
     #define LLO  "%llo"
	 #define LLX  "%llx"
	 #define LL   "%lld"
#else
     #define LLO  "%I64o"
	 #define LLX  "%I64x"
	 #define LL   "%I64d"
#endif

/*! Parses a binary definitions of integral number
	\param[in] text text to parse
	\param[in] len  length of text
*/
long long parse_binary(const char * text, int len);
/*! Parses a common definitions of integral number
	\param[in] text text to parse
	\param[in] base base of number
*/
long long parse_common(const char * text, int base);
/*! Parses a definition of real number
	\param[in] text text with real number
	\return result
*/
double parse_real(const char * text);
